import request from '@/utils/request.js'

/**
 * @param {Object} data
 * 获取艺人列表
 */
export function postArtistList(data) {
	return request.post('/anon/index/artist/list', data)
}
/**
 * 获取首页艺人推荐
 */
export function postArtistHot(data){
	return request.post(`/anon/index/artist/hot/${data}`)
}



export function getAreaList(data) {
	return request.get('/anon/index/area/list', data)
}

export function getCateList(data) {
	return request.get('/anon/artist/cate/list', data)
}

export function postArtistDetail(data) {
	return request.post('/anon/artist/detail', data)
}

export function postUserFollower(data) {
	return request.post(`/user/follower`, data)
}
export function getArtistSubscribe(id) {
	return request.get(`/anon/artist/subscribe/query/${id}`, {})
}

/**
 * 艺人加盟
 */
export function postUserAdd(data) {
	return request.post('/user/add', data)
}
export function postServiceTime(data) {
	return request.post('/anon/artist/update/service/time', data)
}

export function getDurationDownBox() {
	return request.get(`/anon/artist/duration/downBox`, {})
}
export function postBindAdd(data) {
	return request.post('/draw/account/add', data)
}

export function getWalletBalance(data) {
	return request.get(`/wallet/balance`, data)
}

export function postUserList(data) {
	return request.post('/user/list', data)
}
export function postServicePriceQuery(data) {
	return request.post(`/anon/artist/servicePrice/query`, data)
}
export function postAllowCouponQuery(data) {
	return request.post(`/coupon/consume/allowCoupon`, data)
}

/**
 * 获取艺人分类
 */
export function getCateApi(data) {
	return request.get(`/anon/index/artist/cate`, data)
}

/**
 * 获取客服链接
 */
export function getServiceUrlApi(){
	return request.get('/anon/index/serviceUrl')
}


/**
 * 艺人动态列表
 */
export function getArtistMomentListApi(data){
	return request.post('/anon/artist/moment/list',data)
}

/**
 * 添加艺人动态
 */
export function getArtistMomentAddApi(data){
	return request.post('/anon/artist/moment/add',data)
}


/**
 * 删除艺人动态
 */
export function getArtistMomentDelApi(id){
	return request.post(`/anon/artist/moment/del/${id}`)
}